/*
 * FilePath     : \src\stores\pinia.ts
 * Author       : 苏军志
 * Date         : 2024-01-16 08:32
 * LastEditors  : 郭鹏超
 * LastEditTime : 2024-10-17 11:20
 * Description  : pinia初始化实例
 * CodeIterationRecord:
 */
// 状态管理
import { createPinia } from "pinia";
import type { App } from "vue";
// pinia持久化插件
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
// 安装pinia全局状态库
export default function installPinia(app: App) {
  const pinia = createPinia();
  pinia.use(piniaPluginPersistedstate);
  app.use(pinia);
}
